package org.xtb.fun4;

public class Input extends Filter {
    private String input;
    public Input(String input, Pipe output) {
        super(null, output);
        this.input = input;
    }

    @Override
    protected void transform() {
        String[] lines = input.split("\n");
        for (String line : lines) {
            output.writerLine(line);
        }
        output.closeWriter();
    }
}
